package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.EquipmentStockCkApply;
import com.mxpio.erp.common.equipment.entity.EquipmentStockCkApplyItem;
import com.mxpio.erp.common.equipment.vo.VEquipmentStockCkPosting;
import com.mxpioframework.system.service.BaseService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @Description: tpm_stock_ck_apply
 * @Author: jeecg-boot
 * @Date:   2021-10-14
 * @Version: V1.0
 */
public interface EquipmentStockCkApplyService extends BaseService<EquipmentStockCkApply> {

	/**
	 * 删除一对多
	 */
	public void delMain(String id);

	/**
	 * 批量删除一对多
	 */
	public void delBatchMain(Collection<? extends Serializable> idList);
	/**
	 * 提交
	 */
	String submit(EquipmentStockCkApply tpmStockCkApply, List<EquipmentStockCkApplyItem> itemList);
	/**
	 * 修改主附表状态
	 */
	String changeStatus(EquipmentStockCkApply tpmStockCkApply, int status);

	/**
	 * 出库过账
	 * @param tpmStockCkPostingVo
	 */
	void ckPosting(VEquipmentStockCkPosting tpmStockCkPostingVo);
	void ckReject(VEquipmentStockCkPosting tpmStockCkPostingVo);
}
